package com.ugoodtech.mdcc.core.repository;

import com.ugoodtech.mdcc.core.domain.StationLeanPaintReport;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

public interface StationLeanPaintReportRepository extends PagingAndSortingRepository<StationLeanPaintReport, Long>
        , QueryDslPredicateExecutor<StationLeanPaintReport> {

    @Query("from StationLeanPaintReport where report_id=:report_id and question_id=:question_id and deleted=false and enabled=true")
    StationLeanPaintReport selectQuestionOther(@Param("report_id") Long report_id, @Param("question_id") Long question_id);
}
